package com.cc.card.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * 
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2020-12-11 14:54:41
 */
@Data
@TableName("cc_card")
@ApiModel("打卡")
public class CardEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 打卡id
	 */
	@TableId
	@ApiModelProperty("打卡id")
	private Long cid;
	/**
	 * 用户id
	 */
	@ApiModelProperty("用户id")
	private Long uid;
	/**
	 * 打卡时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@ApiModelProperty("打卡时间")
	private Date createtime;
	/**
	 * 打卡地点
	 */
	@ApiModelProperty("打卡地点")
	private String cardAddress;
	/**
	 * 打卡类型0外出打卡1上下班打卡
	 */
	@ApiModelProperty("打卡类型0外出打卡1上下班打卡")
	private Integer cardType;
	/**
	 * 外出打卡原因
	 */
	@ApiModelProperty("外出打卡原因")
	private String outworkComments;
	/**
	 * 备注
	 */
	@ApiModelProperty("备注")
	private String workRemarks;

	@ApiModelProperty("外出打卡图片集合")
	@TableField(exist = false)
	private List<String> imageUrls = new ArrayList<>();

}
